package utils;

import api.APICallRateMonitor;
import api.APICallTypes;
import api.Market;

import java.io.IOException;

/**
 * User: Darren
 * Date: 19/01/13
 * Time: 4:27 PM
 */
public interface Display {


    String getStringAnswer(String question) throws IOException;
    int getIntAnswer(String question) throws IOException;
    int getChoiceAnswer(String question, String[] possibilities, int minValidAnswer, int maxValidAnswer) throws IOException;
    int getChoiceAnswer(String question, String possibilitySetAHeadings, String[] possibilitySetA,
                        String possibilitySetBHeadings, String[] possibilitySetB,
                        int minValidAnswer, int maxValidAnswer) throws IOException;
    int getChoiceAnswer(String question, String possibilitySetHeadings, String[] possibilitySet,
                        int minValidAnswer, int maxValidAnswer) throws IOException;

    void displayTotal(APICallRateMonitor apiCallRateMonitor, APICallTypes type);
    void displayCallPerSecond(APICallRateMonitor apiCallRateMonitor, APICallTypes type);
    void displayTotalAndCallPerSecond(APICallRateMonitor apiCallRateMonitor, APICallTypes type);

    void displayMarketInfo(Market market);
    void displayMarketRunners(Market market);
}